package com.lgj.pay;

import com.lgj.feign.GrayscaleServiceInstanceLoadBalancer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = "com.lgj.**")
@MapperScan(basePackages = {"com.lgj.pay.**.mapper"})
@LoadBalancerClients(defaultConfiguration = GrayscaleServiceInstanceLoadBalancer.class)
public class PaymentCenterApplication {



    public static void main(String[] args) {
        SpringApplication.run(PaymentCenterApplication.class, args);
    }

}
